import myaxios from "../MyAxios";
import BaseUrl from "@/http/BaseUrl"
const BMDURL=BaseUrl.BMDURL


const artist={
    //查询所有艺术家
    queryAllArtist(params){
        let url=BMDURL+'/Works/queryAllArtist'
        return myaxios.get(url,params)
    },
    queryArtistByName(params){
        let url=BMDURL+'/Works/queryArtistByName'
        return myaxios.get(url,params)
    },
    addArtist(params){
        let url=BMDURL+'/Works/add'
        return myaxios.post(url,params)
    },
    deleteArtist(params){
        let url=BMDURL+'/Works/delete'
        return myaxios.post(url,params)
    },
    // 通过id查询
    queryById(params){
        let url=BMDURL+'/Works/queryById'
        return myaxios.get(url,params)
    },
    //更新数据
    updateArtist(params){
        let url=BMDURL+'/Works/update'
        return myaxios.post(url,params)
    }
}
export default artist